package org.example.json;

import org.example.entity.AbstractModel;

public class AbstractJsonConverter<M extends AbstractModel,J extends AbstractJson> implements JsonConverter<M, J>
{
  

  public AbstractJsonConverter()
  {
    super();
  }

  public M modelToJson(J src, M dst)
  {
    dst.setId(src.getId());
    return dst;
  }

  public J jsonToModel(M src, J dst)
  {
    dst.setId(src.getId());
    return dst;
  }

}
